package cn.iocoder.yudao.module.product.controller.app.customermessage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "APP - 客服消息新增/修改 Request VO")
@Data
public class AppCustomerMessageReqVO {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "商品 SPU 编号，关联 ProductSpuDO 的 id")
    private Long spuId;

    @Schema(description = "商品 SPU 名称", example = "李四")
    private String spuName;

    @Schema(description = "消息内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "消息内容不能为空")
    private String content;

    @Schema(description = "消息类型", example = "1")
    private Integer contentType;

    @Schema(description = "发送类型(1-用户；2-系统；3-客服)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "发送类型(1-用户；2-系统；3-客服)不能为空")
    private Integer senderType = 1;

    @Schema(description = "回复管理员编号，关联 AdminUserDO 的 id 编号", example = "30542")
    private Long replyUserId;

    @Schema(description = "回复管理员名称", example = "李四")
    private String replyUserName;

    @Schema(description = "发送时间", example = "李四")
    private LocalDateTime sendTime;

    @Schema(description = "是否在线", example = "true")
    private boolean online;

}